"use strict";
exports.__esModule = true;
console.log('初次体验ts===2222333334445555');
var p1 = 123;
var p2 = '123';
function fn1(id, age) {
    return id;
}
// const a: HTMLAnchorElement = document.createElement('a')
var arr = [1, 2, 3, 'a', 'b'];
var p3 = 123;
p3 = '111';
var p4 = '123';
var p5 = 111;
p5 = 666;
/* 数组类型 */
var arr2 = [1, 3, 4];
var arr3 = [1, 3, 4, 'aaa'];
var arr4 = [1, 2, 3];
var arr5 = ['1', '2'];
var arr6 = ['1', '2', 1];
/* 函数定义 */
function fn2(n1, n2, n3) {
    return n1 + n2 + n3;
}
fn2(1, 2, 3);
var fn3 = function (n1, n2) {
    return n1 + n2;
};
fn3(1, 2);
var fn4 = function (a, b) {
    return a + b;
};
/* void类型 */
function fn5(n1) {
    console.log(n1);
}
/* 函数参数自定义 */
function fn6(n, m2, m) {
    if (n === void 0) { n = 0; }
}
fn6(1);
/* 对象类型 */
var obj1 = {
    age: 18,
    name: 'jack',
    hobby: ['1', '2'],
    say1: function (n1, n2) {
        return n1 + n2;
    },
    say2: function (n1) {
        return n1;
    }
};
var obj2 = {
    age: 18,
    name: 'jack',
    hobby: ['1', '2'],
    say1: function (n1, n2) {
        return n1 + n2;
    },
    say2: function (n1) {
        return n1;
    }
};
function fn7(object) {
    console.log();
}
fn7({ age: 1, name: 'jack', hobby: [] });
var objPerson = {
    age: 18,
    say2: function () { }
};
